#ifndef ADD_D_CH_H
#define ADD_D_CH_H

#include <QDialog>
#include "grouplist.h"

namespace Ui {
class ADD_D_CH;
}

class ADD_D_CH : public QDialog
{
    Q_OBJECT

public:
    explicit ADD_D_CH(QString str,QString freq,QWidget *parent = 0);
    ~ADD_D_CH();

    void switch_language(QString language);
    void init(QString str);
     void setFreq(QString str);

private slots:
    void deal_combox(QString str);
    void deal_combox_colorcode(QString str);
    void deal_combox_mode(QString str);
    void deal_combox_call(QString str);
    void deal_combox_outputtime(QString str);
    void deal_combox_inputtime(QString str);
    void deal_combox_volume(QString str);
    void deal_combox_gain(QString str);
    void deal_combox_encrypt(QString str);
    void deal_group_list(QString str);
    void on_pushButton_clicked();


    void on_pushButton_2_clicked();

private:
    Ui::ADD_D_CH *ui;
    QString name;
    QString recvfreq;
    QString sendfreq;
    QString id;
    QString power;
    QString colorcode;
    QString mode;
    QString call;
    QString output;
    QString input;
    QString volume;
    QString gain;
    QString language;
    QString num;
    QString list;
    QString key;
    QString lencrypt;
    QString slist;

    QString freq;

signals:
    void send_str(QString str);

};

#endif // ADD_D_CH_H
